// TOWN DIALOGUE SCRIPT
// 	Town 1: Party Builder
//
// Nodes 1-5 are for the Head Merchant. 6-12 are for Machrone. 13-4 are for the
// identifying child.

begintalkscript;

variables;
short diff;

// *** Head Merchant ***
// This guy sells recipes and (to god parties) god items. Other than that, he's
// not very interesting.

begintalknode 1;
	state = -1;
	personality = 1;
	nextstate = 1;
	condition = 1;
	question = "Head Merchant";
	text1 = "You see a man painstakingly at work crunching numbers. He looks up as you approach. _Good!_ he says. _More adventurers!_";
	text5 = "_What else can I do for you?_";
	action = INTRO;

begintalknode 2;
	state = 1;
	personality = 1;
	nextstate = 1;
	condition = 1;
	question = "Why are more adventurers good?";
	text1 = "He looks at you and grins. _We are merchants,_ he replies. _More adventurers means more money for us!_";

begintalknode 3;
	state = 1;
	personality = 1;
	nextstate = 1;
	condition = 1;
	question = "Who are you?";
	text1 = "_Just a humble merchant._ He shrugs. _My identity is not important._";

begintalknode 4;
	state = 1;
	personality = 1;
	nextstate = 1;
	condition = 1;
	question = "Do you sell anything?";
	text1 = "You finish shopping.";
	code =
		begin_shop_mode("Reusable Recipes","'Why, yes, I do!' he says, offering you a tempting array of potion recipes.",16,1,-1);
	break;

begintalknode 5;
	state = 1;
	personality = 1;
	nextstate = 1;
	condition = get_flag(250,1) == 250;
	question = "I've heard you can sell me some powerful items.";
	text1 = "He winks at you as you finish shopping. _You won't have to worry about tough monsters any more. Not with those items._";
	code =
		begin_shop_mode("GOD ITEMS!!!!","He smiles and shows you the most powerful weapons and armor you've ever seen. These things could kill a dragon with one hit or deflect the blows of a vahnatai lord.",15,0,-1);
	break;

// *** Machrone ***
// Because every scenario needs a Machrone.

begintalknode 6;
	state = -1;
	personality = 3;
	nextstate = 2;
	condition = 1;
	question = "Machrone";
	text1 = "Wandering through the shopping area is a man of indeterminate age. He carries a piece of paper with him and makes notes constantly. _Ah! Yes! Interesting._";
	text2 = "He seems rather startled when you approach him. _Who are you? Oh, yes, you must be the newest arrivals to this strange place._";

begintalknode 7;
	state = 2;
	personality = 3;
	nextstate = 3;
	condition = 1;
	question = "Who are you?";
	text1 = "_My name is Machrone. I am a journalist, sent to report on unusual events and strange locations._";

begintalknode 8;
	state = 3;
	personality = 3;
	nextstate = 4;
	condition = 1;
	question = "What are you doing here?";
	text1 = "_I happened to be on the wrong end of a mage's dimension-warping spell. I got transported into this most peculiar of environs._";
	text2 = "He gives you funny look. _But how did YOU get here, I wonder?_";

begintalknode 9;
	state = 4;
	personality = 3;
	nextstate = 2;
	condition = 1;
	question = "Uhh... I don't really know.";
	text1 = "_What a strange place this is!  I will have to write a report on it when I get back into the real universe._";

begintalknode 10;
	state = 2;
	personality = 3;
	nextstate = 5;
	condition = 1;
	question = "What is this place?";
	text1 = "_It is quite strange. I have heard it called a High Level Party Maker. You are a party of adventurers, correct? And you have grown greatly in power since you arrived here?_";

begintalknode 11;
	state = 5;
	personality = 3;
	nextstate = 2;
	condition = 1;
	question = "Why... um... yes.";
	text1 = "_How odd. Something in the magical fabric of this place gives tremendous power to the transients of its reality._";
	text2 = "He realizes that you are staring at him uncomprehendingly. He smiles. _I've been reading The Problems of Interdimensional Theory by Rita of the Cskany Clan. Quite fascinating stuff._";
	text3 = "He continues, _Anyway, the way this reality is set up, you gain power by walking through here. The mathematics of it are too complex for me to explain, but it works._";

begintalknode 12;
	state = 2;
	personality = 3;
	nextstate = 2;
	condition = 1;
	question = "Will you be heading back to normal reality soon?";
	text1 = "_Soon enough. I want to look around here a little bit more. The head merchant here is very secretive about his identity, and I want to know more about him before I leave. I have been asking for quite some time, and he still refuses an interview._";
	text2 = "He adds, _But yes, soon, I will go._";
	
// *** James ***
// This child does identification for the party.

begintalknode 13;
	state = -1;
	personality = 4;
	nextstate = 6;
	condition = 1;
	question = "Child";
	text1 = "_Hi, there,_ this five-year-old child says. _My name is James._";

begintalknode 14;
	state = 6;
	personality = 4;
	nextstate = -1;
	condition = 1;
	question = "Please identify my items.";
	text1 = "Even this small child knows what your items are, but sadly, you don't. Fortunately, he is willing to tell you (for a small fee, of course).";
	action = ID 5;